<include file="public@header"/>
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a >音乐分类</a></li>
			<li><a href="{:url('Music/classify_add')}">添加</a></li>
		</ul>
		
		<form class="well form-inline margin-top-20" method="post" action="{:url('Music/classify')}">
			关键字：			
			<input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}" placeholder="分类名称">			
			<input type="submit" class="btn btn-primary" value="搜索"/>
			<a class="btn btn-danger" href="{:url('Admin/Music/classify')}">清空</a>
		</form>

		<form method="post" class="js-ajax-form" action="{:url('Music/classify_listorders')}">
			<div class="table-actions">
				<button class="btn btn-primary btn-small js-ajax-submit" type="submit">{:lang('SORT')}</button>
			</div>
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th>序号</th>
						<th align="center">ID</th>
						<th>分类名称</th>
						<th>分类图标</th>
						<th>添加时间</th>
						<th>修改时间</th>
						<th>是否删除</th>
						<th align="center">{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<php>$isdel=array("0"=>"否","1"=>"是");</php>
					<foreach name="lists" item="vo">
					<tr>
						<td><input name="listorders[{$vo['id']}]" type="text" size="3" value="{$vo['orderno']}" class="input input-order"></td>
						<td align="center">{$vo.id}</td>
						<td>{$vo['title']}</td>
						<td><img src="{:get_upload_path($vo['img_url'])}" class="imgtip" width="50px" height="50px"></td>
					
						
						<td>{:date('Y-m-d H:i:s',$vo['addtime'])}</td>
						<td><if condition="$vo['updatetime'] neq '0'">{:date('Y-m-d H:i:s',$vo['updatetime'])}<else />--</if></td>
						
						<td>{$isdel[$vo['isdel']]}</td>
						<td align="center">
							<a class="btn btn-xs btn-primary" href="{:url('Music/classify_edit',array('id'=>$vo['id']))}" >编辑</a>
							<if condition="$vo['isdel'] eq '0'">
							<a class="btn btn-xs btn-danger  js-ajax-dialog-btn" href="{:url('Music/classify_del',array('id'=>$vo['id']))}" data-msg="您确定要删除吗？删除后对应分类下的音乐将不显示">删除</a>
							<else />
							<a class="btn btn-xs btn-danger js-ajax-dialog-btn" href="{:url('Music/classify_canceldel',array('id'=>$vo['id']))}"  data-msg="您确定要取消删除吗？">取消删除</a>
							</if>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>